package com.example.student.Repository;

import com.example.student.entity.Course;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CourseRepository extends JpaRepository<Course, Long> {
    // 这里可以添加自定义的查询方法
    List<Course> findByCourseNameContaining(String courseName);
}